var Mock = require('mockjs');

exports.response = function (req, res) {

	return Mock.mock({
					"msg": "OK",
					"code": 0,
					"data": {
							"total": {
									"bench_rate": "@float(-100,100,0,4)%",		//基准收益率
									"interaction_rate": "@float(-100,100,0,4)%",   //交互收益
									"c_bench_code": "001",     //基准代码
									"allocation_rate": "@float(-100,100,0,4)%",   //资产配置收益
									"port_rate": "@float(-100,100,0,4)%",   //组合收益率
									"l_org_id": "12312",    //组合内码
									"port_contribution": "@float(-100,100,0,4)%",   //组合收益率贡献
									"d_date": "2017-09-07",   //资产日期
									"contribution_difference": "@float(-100,100,0,4)%",   //收益率贡献增值
									"differential_profit": "@float(-100,100,0,4)%",              //差价收益
									"residual_term": "@float(-100,100,0,4)%",                 //残差项
									"l_port_id": "12312",   //机构内码
									"rate_difference": "@float(-100,100,0,4)%",   //收益率增值
									"indunum": "0",   //行业编码
									"selection_rate": "@float(-100,100,0,4)%",   //个股选择收益
									"indunumname": "总计",   //行业名称
									"induetandardcode": "0",   //行业标准
									"time_range": "1",   //归因日期范围
									"post_weight": "@float(-100,100,0,4)%",   //组合权重
									"bench_weight": "@float(-100,100,0,4)%",   //基准权重
									"bench_contribution": "@float(-100,100,0,4)%",   //基准收益率贡献
									"weight_difference": "@float(-100,100,0,4)%"  //权重差
							},
							"list|20": [
									{
											"bench_rate": "@float(-100,100,0,4)%",
											"interaction_rate": "@float(-100,100,0,4)%",
											"c_bench_code": "001",
											"allocation_rate": "@float(-100,100,0,4)%",
											"port_rate": "@float(-100,100,0,4)%",
											"l_org_id": "12312",
											"port_contribution": "@float(-100,100,0,4)%",
											"d_date": "2017-09-07",
											"differential_profit": "@float(-100,100,0,4)%",
											"residual_term": "@float(-100,100,0,4)%",
											"contribution_difference": "@float(-100,100,0,4)%",
											"l_port_id": "12312",
											"rate_difference": "@float(-100,100,0,4)%",
											"indunum|+1": 1,
											"selection_rate": "@float(-100,100,0,4)%",
											"indunumname": "@cword(4)",
											"induetandardcode": "10000",
											"time_range": "1",
											"post_weight": "@float(-100,100,0,4)%",
											"bench_weight": "@float(-100,100,0,4)%",
											"bench_contribution": "@float(-100,100,0,4)%",
											"weight_difference": "@float(-100,100,0,4)%",
									}
							]
					}
			})
}
